Sudden "nextcloud is currently down"

You have to do a backup before you start changing things. You can backup the current state…

Regarding updating your system or php, there are a few topics here. I didn’t go through them all to see which applies the best (and probably I missed a few on the way):