Apologies for the very late reply. I hope you found a solution.
If I remember right, there were two TM to Unreal content packages/plugins available at the time and it turned out that one of them was actually not needed and prevented the scene from being compiled. Once uninstalled, UE5 happily packaged.
With the latest TM versions I think those are obsolete anyways…