Samsung has recently brought its dedicated camera night mode to the Galaxy S9 family and the Note9, but for these devices unfortunately it's not all smooth sailing. Some frustrated owners have taken to online forums such as XDA-Developers to vent about the camera app crashing and not saving pictures taken in this mode. The app just throws a "camera failed" warning at the user and calls it a day (or night, as would be more fitting in this case). To be perfectly clear, this doesn't seem to affect every S9 or Note9 owner, and not all people are affected in the same way. Some report the camera...
Source: https://www.gsmarena.com/camera_night_mode_on_galaxy_s9_and_note9_crashes_for_some_users-news-38039.php