[4.12.5] Unwanted shadows when moving objects

I think I figured it out. It can be the AO. Edit: No, still happens after more troubleshooting. Hope it can be fixed.