Please try the below:
1. Check if you have sufficient storage space for your photos. If not, free up space.
2. Go to Settings > Apps > See all apps > Find camera > Storage & cache > Clear storage and clear cache.
3. Back up your data and restore the phone to factory settings or update it to the latest system.