Mac disconnects from 802.1X WiFi if I leave it alone for too long
Good day Apple Community,
Device: 2020 13-inch M1 MacBook Pro running macOS Ventura 13.2.1
I reside in an apartment that has shared Wi-Fi with authentication among its tenants (not the safest I know but it's free/baked into the cost).
When connecting, your computer asks you for a username and password (provided to you by the landlord). The Mac connects and everything works as expected.
However, I've noticed that when I leave it alone for a few hours (I have not actually measured it but I know I've come back to it 2 hours later to have it happen) it disconnects from the WiFi, and I have to manually reconnect in the WiFi menu. This has led to some large downloads and cloud backups failing throughout the night (so I know it's not due to a lack of network usage).
Now Internet Sharing does not work either with this connection.
It keeps bringing up the error "Your internet connection cannot be shared because it is protected by 802.1X."
Both of the above issues have been occurring ever since I own this Mac, and it's not a Ventura-specific issue because it has happened on macOS Monterey as well.
I assume at least this is some Apple security feature as I have noticed that I do not have these issues on my Android phone, or Windows laptop. Both of them are able to use their hotspot functionality to share the 802.1X WiFi connection with other devices and stay connected throughout the night!
And it only happens on this WiFi connection since I have never had these issues in my previous residence where I had my own internet connection routed through a standard off-the-shelf router.
Is there any way I can remedy this issue on macOS?
Thanks for reading,
William