Weird ambient occlusion like shadows appear and disappear when moving in the scene

I’m experiencing a strange ambient occlusion shadow that disappears when you get closer. This only happens when I package for standalone on the Quest 3. Does anyone know a solution for this?