There are some existing threads on this board that have similar experiences in regards to the warming up of the phone when using the camera.
It's possibly due to the new camera module and all that it does. I just use the standard settings i.e not pro mode etc and I don't have any warming.
Also I don't use my camera for extended period of time.
Current Phone > Samsung Z Fold³ 5G.