When a Mac connects to the router fine but pages load slowly or video keeps stalling, I’d let macOS look at the connection before touching any router setting. Apple has a Wireless Diagnostics app for that, and it’s hidden behind the Option key.
Option-click the Wi-Fi icon > Open Wireless Diagnostics
Apple’s steps: quit your open apps, join the Wi-Fi network that gives you trouble, then hold Option, click the Wi-Fi icon in the menu bar and choose Open Wireless Diagnostics. Follow the instructions on screen. When the analysis finishes you get a Summary with the issues it found, and the info buttons next to each item explain what it means. According to Apple it doesn’t change any of your network settings, so it’s safe to run.
It also saves a compressed file in /var/tmp whose name starts with WirelessDiagnostics and ends in .tar.gz. In the Finder, choose Go > Go to Folder and type /var/tmp to find it. That file is meant for your provider or whoever helps you troubleshoot.
You can get the same thing from the Terminal with wdutil, which runs the diagnostics without the app window:
sudo wdutil diagnose
It writes to /var/tmp by default, and -f followed by a folder puts the result somewhere else. It needs sudo.
The caveat is the report itself. It’s a big bundle of details about your Mac and your network, so I’d only hand it to someone you actually want to help you, and delete it from /var/tmp once the problem is solved.
Further reading: Use Wireless Diagnostics on your Mac (Apple), wdutil man page (SS64, macOS)