I would like to look into this for you. Let's look into a couple of things first.
Have you made sure your phone is up to date?
Are you using the factory camera app?
Have you tried clearing the cache for the app?
Does it behave the same when your phone in safe mode?
If there are no updates and the troubleshooting steps have not helped the symptom I would definitely recommend an evaluation for the device so that a certified technician can get a hands on look at the device.
The only thing I would advise you to do is call 1800 SAMSUNG if it is a hardware issue. a Galaxy A71 is an international model and it cannot be repaired at any service centers in the US. You should definitely back up all of your info before you do anything.