WiFi randomly disconnecting

Since a few days ago, WiFi has been randomly disconnecting on my laptop. After disconnecting, it says that there are no available connections. My WiFi card is rtl8852be, which doesn’t have a good reputation with Linux. Still, all necessary drivers are installed. My specs:
Fedora version: 38
KDE Plasma version: 5.27.5
KDE Frameworks version: 5.106.0
QT version: 5.15.9
Kernel version: 6.3.6-200.fc38.x86_64 (64 bit)
Laptop: HP Pavilion Laptop 15-eh2xxx

Any help would be appreciated

Consider replacing the wifi card with one that works more reliably with linux. Look for cards with in-kernel drivers and check reputation with the vendor’s support site and Linux Hardware Database (LHWDB).

Fixed thanks to this: rtw89_8852be network card ejects randomly · Issue #240 · lwfinger/rtw89 · GitHub
I followed the 2nd solution, since the first one wasn’t valid for me.

There are 2 solutions in the thread you linked: the first applies options using /usr/lib/modprobe.d/70-rtw89.conf, the second requires rebuilding the module from the git repo. Which did you use?

The 2nd one. Edited the solution