You should first update the system fully before installing additional software.
I guess from your experience, you’re on the stable channel, so please first read and understand the Announcement post(s) [Stable Update] 2022-01-23 - OpenSearch, Kernels, KDE Software, Cinnamon, Pipewire, Mesa, Gnome, LibreOffice - #2 by philm
Then, you can go ahead and install virtualbox with pamac install virtualbox
.
You have to choose those virtualbox-host-modules that match the kernel you’re using.