There are different paths that one could take:
- persevere with wayland
- persevere with X11
The former means update as much as possible, for fedora there is (if not mistaken) v42 which would hopefully remove a lot of the bugs that wayland introduced (it is a gamble, I do not know the outcome. But at least it is the same for every distribution that decided to go wayland). The same goes for your Lazarus installation as the developers try their best to accommodate wayland incompatibilities but that does require to use the latest, e.g. trunk/main.
Some distributions offer a X11 compatibility transition period which allows for the user to be able to use old-style x11 sessions (raspios for example has an option to switch between X11 (xwayland) and wayland. As already mentioned by Thaddy). I do not know the details about Fedora but the article that was linked to does not sound very promising in that regards (though Thaddy is right that there seem to be an option it is just that the article seem to suggest that fedora devs want to get rid of it asap).
Which brings us to the latter option, trying to stick with X11. I do not know how feasible it is to accomplish that with fedora 41. I would advise to try read into the subject and see how other fedora users handle this (if possible at all) or if they switched back to v40 or otherwise.
On the long run wayland seem inevitable so it might be worth the effort to bite the bullit right away to be able to familiarize yourself with it. In which case be prepared to run into bugs, report them and wait for them to be addressed (in case possible). Or better yet try to fix yourself and help the other developers out.
Either way it is a very unpleasant situation for serious production.
PS: the QT widgetset seem to have far less issues with wayland so Alexx2000 was right about that.