I did implement some codes that might help with unstucking the car in these situations.
There’s one where you can get out of these by trying to align with the track for about 1 or 2 seconds, but I guess the code might not have worked well enough this time ;-;