Hi,
I had the same writing error (on the X-T3), and I figured it was due to my memory card's speed : too low. I fixed the problem by downgrading the speed writing to 50mb/s, but I'll buy a faster card in order to get the full potential of the camera.
Hope it helped !