If you’re you’re on pi4 then you need to stick to Ubuntu and 4.4 for official builds.
Unless you have pi 5 which looks like it is supported hardware then you’ll be able to install 5.0+
Otherwise you can try @Matt_Kneiser’s build(s) Error while installing mongoDB on a raspberry pi 4 using ubuntu 22.04 - #3 by Matt_Kneiser