Sorry to see you're experiencing this issue. Is this problem new to After Effects 2023 or is it occurring in the previous version as well?
If possible, could you share the project file with us so we can better investigate what is happening?
Thanks for reporting this issue and for any further information you can provide,
- John, After Effects Engineering Team