so as not to; to not ~
Expresses doing something with the aim of preventing a certain situation from occurring.
This pattern is used to state a purpose or intention to avoid something happening. It is like saying 'so that ~ does not happen' or 'in order not to ~'. The verb before it is often an action that you take deliberately to prevent the unwanted event. It sounds careful and often appears in warnings, advice, or self-instructions.
This is a fairly formal and written expression, though you may hear it in speeches or announcements. In everyday conversation, you'd more often use ないように (without ことの) or しないように. But when you want to emphasize the preventive intention or when writing formally, this pattern fits.
The nuance is that the speaker is consciously taking steps to avoid a specific outcome. It is not used for natural consequences or things beyond one's control.