To help narrow down the specific cause of your FST write failure, could you tell me: Which and device are you currently using?
Here is a comprehensive breakdown of why this error happens and exactly how to fix it. What Causes the "Failed to Write New FST" Error?