Thank you @codinghorror and @markersocial for the instructions. It’s now been over a day and it looks like things are back to normal. I haven’t done anything but wait.
I’ll keep an eye on things and see if any more 502’s pop up (it might be due to low users during off-peak hours).
If it occurs again I will try the steps that you’ve listed.