"Was working fine before, ..."
It was working fine before what ?
Have you recently updated Photoshop to 22.4 or 22.4.1.? If so, for 3D work you will need to go to Preferences > Technology Previews and check "Deactivate Native Canvas". After clicking OK, you will need to close and start Photoshop.
Dave