The Episode Four loop seems to be caused by a mistake in the code in the script file dia14.rpy
Specifically this code block:
if aurora_historia_ativar == True:
jump aurora_dia14
else:
jump dia07_fim
What seems to be happening is if you are not on the Aurora path then you are sent back to Episode 4 -the jump to the function dia07_fim is the very last block of code in the script file dia7.rpy which then becomes the start of episode 4.
The easy way around it is to roll back the day from when the loop happens to the point when you walk into the coffee shop (it is only a few screens), then go into the console and enter
aurora_historia_ativar = True
which will trigger an event with Aurora in the Coffee Shop, once this happens then the day seems to carry on normally.
If you really don't want to see any Aurora content, then once the Aurora event and the following event completes in the coffee shop you should be able to turn this back to FALSE. (not tested).
DISCLAIMER:
This workaround worked for me on the Mac version - your mileage may vary.