Try going into settings. Apps. Camera. Storage and clear cache and then clear data if required.
Ensure you have enough internal storage to be able to take photos and save them too.
Current Phone ~Samsung Note 20 Ultra 5G SM-N9860_256Gb SnapDragon 865+ Samsung One Ui 3.1/ Android 11.