How WordPress reacts to a lack of memory of the server [closed]

Edge cases when there is no system memory can happen, but are very unlikely. It might have been some update process that opened the file but failed to complete writing to it. But the chances for that are somewhere between slim to non-exsitant. Most likely it was something unrelated.