I can't remember which trainer manufacturer made one but somebody made an adapter for THEIR trainer to accommodate IGHs. I found one online but it wouldn't fit my dads trainer. So I suggest you find the adapter and get a trainer that fits it. (I don't recall the brands that I was dealing with.)
__________________
I don't do: disks, tubeless, e-shifting, or bead head nymphs. But I do hate all e-bikes.