Welcome!
Raspberry Pi 5 is unfortunately not compatible with Debian 11, on which YunoHost 11 is based.
However I see you tried YunoHost 12 too, but there is currently no built image for it. Can you try installing Debian 12 with its image, then follow the curl | bash
method?