A loop means to run everything in the code until it is complete. The cycle, or tick cannot finish until the loop is done.
Using While as is makes it so that it may never complete, so the system crashes.
Don't use While unless you know for sure what you are doing.
If you want it to run every second then use the Every x milliseconds condition under system as a sub event of the Los condition.