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 Z Fold³ 5G. Back Up Phone > Note 20 Ultra 5G SM-N9860.