There was a time when I would have thought it was ridiculous to stay 24/7 in the hospital room. Now I know, you did the right thing. I’m glad you knew to do that.
Yes, I learned that very early in life when my daughter was 6 years old - back then we were forbidden to stay all night.
What happened was not a tragedy, but it did give her an unrational fear of Drs and hospitals for at least 15 years.
From then on I always made sure that we took turns, or else I stayed 24/7 with my kids, parents, and sister.