Did you manage to install ghostty again after the upgrade? Had the same issue, and the upgrade went fine after uninstalling, but the conflict between ghostty and ncurses remains. The ncurses seems to come from fish in my case, which I also want to keep.
Edit:
Seems like it is not a fedora only problem, and hopefully will be fixed on the ghostty side.
So I removed the ghostty app only, upgraded and after all of that I used Terra repository, also recommended on ghostty webpage documentation, rather than pgdev repo.