I have tried the following:
rebooting multiple times
wiping cache of all apps using the camera (Default Camera app, Snapchat, Instagram, etc.)
booting in safe mode
Nothing of the above worked, and I don’t really want to do factory reset.
Is there a solution to this or the newly installed camera is faulty as well?