>Sometimes I can’t even abort the program with Carl+C or D after the error has occurred, and I have to close the terminal
In my experience, whenever Ctrl+C doesn't work, LaTeX can be terminated by pressing the X key and then Enter. (Look for the "Type X to quit or <RETURN> to proceed" in the error message.)