I am not a dev and I do not know where UE5 is at in terms of handling something like a turn based CRPG that has the complexity of a Larian game.
That being said if they can get a CDPR type of deal where the Epic engineers are going to help them put it all together, it wouldn't take horribly long to do and would ultimately permit them to add more systems to their game while saving time? I don't see why not - if the time saved in development can offset the cost of working on their own engine.
But the questions around that are all pretty big and nuanced... and I am guessing the vast majority of people who post here have no answers for them. But maybe there are some devs lurking around with thoughts.