To the OP, the harsh feel is likely that you have too many volume spacers in the fork for your type of riding. The fork is ramping up too much and this results in a harsh ride. The Fox 38E comes with one more spacer that the standard 38, to provide additional ramp and bottom out resistance for a heavy ebike, however in many cases it not needed. An ebike only weighs an extra 10kg over non ebike, A light rider on a ebike could weigh less than a heavy rider on a non ebike, yet the ebike still has a fork set up for a heavier load.
I had a similar experience when I first rode my 2021 Commencal Meta Power 29 signature with the Fox Factory 38E, 170mm. It felt harsh with the 3 spacers as installed from the factory. So I removed all 3 of the volume spacers and rode it on a few different trails to get a feel of the ramp and bottom out point. It was nice and smooth throughout the travel but bottomed out on the big landings. So I added one spacer, but still bottomed out a bit too easily, now I am on 2, however I think that 1.75 spacers is actually what I would like as the ramp up on 2 spacers feels a bit too much!