I see you issuing multiple Append to File requests in quick succession.
I also see no use of the when File1.AfterFileSaved event block.
I infer from the existence of that event block that you might have to control the timing of your Appends using that event block.
Alternatively, if you package your questions and answers into a list of dictionaries, AI2 can marshall that into JSON text when you write it out as text to a file.
The Web component has a block to decode JSON back into dictionaries and lists.
The conversions automatically wrap text with quotes to guard against characters that would break the packing and unpacking.