I discovered the issue. I had manually edited registration_magic.php to fix the “Active PHP session was detected” critical issue that shows up in Site Health Status.
I fixed the “Active PHP session was detected” issue by changing the below line in registration_magic.php, but this seems to cause the unable to save issue. Reverting this change makes it so I can save, but now I still have the “Active PHP session was detected” issue.