MacBook stays connected to wifi but loses internet connection
A recent article on Cult of Mac entitled How to fix Wi-Fi and Bluetooth interference on a Mac may give some insight. In your screenshots, your wifi is running on 2.4GHz which is the same as Bluetooth according to the article.

If a wireless connection is a must, you may find that a change in router settings is what you need. Wi-Fi and Bluetooth devices use the 2.4GHz band as standard, but modern routers also support the 5GHz band.

I was about to ask about my audio skipping that is playing over Bluetooth. I noticed that my router does have 2.4GHz running. I am currently testing to see if my problems are resolved.