Sorry for your issue.
Would you mind sharing your system specifications (CPU, GPU, RAM, OS version)? Also, do you see any crash report? If so, please share. In the meantime, you can try resetting the preferences of After Effects.
Let us know if it brings any change.