This looks like a magical universe... I bet magic has a solution for this kind of thing. Also, I believe there are plenty of animals with a bone in their genitals in order to facilitate erection. While humans do not have that, it should be trivial to create something similar with magic.
Ah I got it, solidified mana. Only if it's a fantasy world with magic... Idea inspired by the anime [A Sister Is All You Need].