https://www.reddit.com/r/archlinux/comments/exr82b/tried_55_from_testing_and_wifi_rtl8822be_stopped/
I have found a workaround for it issue. The issue is caused most times because this function fails trying to read the ASPM configuration from the PCI device. The current rtwpci module doesn't have an option to manage ASPM as well. So, digging a bit deeper I have found that setting ASPM using the Link Control Register fix the problem and rtwpci is able to read it properly. By default, RT8822BE cards enable L0s and L1 ASPM states but L0s states are shown as "Unknown" then rtwpci fails. I have made a little script that fix the issue, just be sure to follow:
Note: execute next commands as root.
Execute lspci | grep -i wifi | awk '{print $1}'
and keep that result in mind.