Here are the top 5 ways to fix the 5xx server error on Instagram:
Check if your Internet connection is working
Update Instagram
Log In and Out of Instagram account
Reinstall Instagram
Use Instagram on browser.