I'll need a sample project - I have just added the demonstrated for-loop into my test project along with debug_event("DumpMemory"), and it is not showing any steady memory increase; I found an unrelated "hard crash on boot" issue and filed a bug for it.
Viewing post in [Fixed in GMS2.3.1+] Runner randomly exits with non-zero status
Here it is: https://gmclan.org/up23_18_gms_23_GMLIVE_crash.html (with GMLIVE cut, need to be re-added).
To crash, I just need to run it and wait about 60-120 seconds (you can watch memory usage in Task Manager, for me it crashes around 1.5 GB used).
This is how memory usage looks on my side, the moment of crash is easily visible: https://i.imgur.com/PP5RVF6.png
Edit: here is a chart from GM debugger for above example: