This is being discussed in the main FP4 Android 15 announcement.
Just don’t lock the phone or leave the photo app right after taking the picture. Give it a few seconds to save the image before doing something else. Of course, this is a workaround, not a solution.