I run ubuntu off a persistent live usb and recently I've been having a problem where around 5-15 minutes after I boot into ubuntu my wifi disconnects and says that i have been disconnected from the network and when i check the wifi tab it does not detect any internet connections nearby and turning it on and off does nothing, rebooting ubuntu fixes it for 5-15 minutes but then the same problem ensues, I've tried turning off NetworkManager's power save in the config file and disabling secure boot but nothing helped, the computer i am currently running on is a HP Pavillion Sleekbook 15
running lshw -C network gives out
*-network
description: Wireless interface
product: QCA9565 / AR9565 Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:07:00.0
logical name: wlo1
version: 01
serial: 20:68:9d:34:67:cc
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=5.11.0-27-generic firmware=N/A ip=192.168.1.91 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:16 memory:d3500000-d357ffff memory:d3580000-d358ffff
*-network
description: Ethernet interface
product: RTL810xE PCI Express Fast Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:08:00.0
logical name: eno1
version: 05
serial: 84:34:97:72:5f:eb
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.11.0-27-generic firmware=rtl_nic/rtl8105e-1.fw latency=0 link=no multicast=yes port=twisted pair
resources: irq:17 ioport:3000(size=256) memory:d3404000-d3404fff memory:d3400000-d3403fff
update: neither sudo service network-manager restart
nor sudo service NetworkManager restart
fixes the issue and journalctl only gives me a warning message with no errors when it cuts out again which is Nov 16 23:06:44 ubuntu NetworkManager[1940]: <warn> [1637089604.5868] ifupdown: interfaces file /etc/network/interfaces doesn't exist
23/11/22: Ive reinstalled ubuntu and that fixed my problem for 3 days but this same problem has reoccurred even though I haven't tampered with anything network related