‘Heir to the Jedi…’ is correct, if semi-archaic.
I don’t think it would be wrong to say something like “heir to the throne,” and “heir of the throne” would sound wrong. ‘Jedi’ acts as a noun in this case.
But hey, we’ll see what the crawl ends up like. It’s one of the best parts of doing these edits.