How To: Fix raspberry pi wifi connecting and disconnecting

Keeping this as a reminder of how I solved this issue.

Problem: Raspberry pi zero w keeps connecting and disconnecting

Solution: Restart your router, I have an ASUS RT-AX86U. Also restart your pi.