I've recently switched to After Effects CC 2022 and have been experiencing a weird crash where first my computer will freeze, my monitor will appear to no signal, and then I'll have to turn my monitor off and back on again. When I turn my monitor back on, however, After Effects is closed with no crash message. I've already tried clearing my cache and increasing cache size and the amount of ram After Effects can use.
Are you working on a dual monitor setup? If so, what happens if you disconnect the secondary one? If that doesn't help, please make sure that your GPU driver is updated. Consider installing the Studio driver instead of the Game-Ready driver.