Your nonlinear writing style could be related to several things, and it's not necessarily indicative of a mental condition - many creative and productive people work this way naturally.
This writing pattern might be connected to:
ADHD - People with ADHD often have a "branching" thought process where multiple ideas occur simultaneously, making linear progression feel constraining. The fact that forcing linearity increases your anxiety and decreases productivity is particularly consistent with ADHD.
High creativity or divergent thinking - Some people naturally think in webs rather than lines. Your brain might be making connections across different parts of your text simultaneously, which is actually a strength for certain types of writing and thinking.
Anxiety or perfectionism - Sometimes jumping between sections helps manage the pressure of "getting it right" by allowing you to work on whatever feels most accessible in the moment.
The key question isn't whether this is "normal" but whether it works for you. Since you do complete everything eventually and forcing a different approach causes distress and reduced productivity, your method seems functional. However, if you're finding it increasingly difficult to manage multiple threads, losing track of what you're working on, or if this pattern extends problematically to other areas of life, it might be worth discussing with a mental health professional who can assess whether support strategies could help.
Many successful writers and thinkers work exactly as you describe - the nonlinear process can actually lead to richer, more interconnected final products.