There's no way to fix this, there's a fault with the front mechanism or sensor. I've went through all this for years, had multiple repairs, eventually it was just replaced by Fujifilm.
There's a chance there could be a small piece of dust floating around, so this is the cameras safety mechanism to just ask you to turn it off.
Remove the lens, use a blower upside down. See what that does.