Wifi goes down after some time

You did. Sincere apologies for missing it. My glasses obviously needs cleaning.

Anyway, see:

https://wiki.archlinux.org/title/Network_configuration/Wireless#rtl8723ae.2Frtl8723be

Edit:

I suspect this part, specifically:

Some users may encounter errors with powersave on this card. This is shown with occasional disconnects that are not recognized by high level network managers (netctl, NetworkManager). This error can be confirmed by running dmesg -w as root or journalctl -f as root and looking for output related to powersave and the rtl8723ae/rtl8723be module. If you have this issue, use the fwlps=0 kernel module parameter which should prevent the WiFi card from automatically sleeping and halting connection.