Most of the better suspension forks, and even the better rigid forks tend to require allowance for a tapered steerer tube, (1.5 to 1.125”). Many ebikes are 1.25 to 1.125” or straight 1.125”. You also will want to be careful about changing the bike’s geometry and handling, (travel and trail).