The code is for the ignition speed input sensor. The coolant leak may have damaged it and is causing the problem. I would repair this code and it should solve the issue. Here is some more info on this.
P0321 VOLKSWAGEN - Ignition Engine Speed Input Circuit Range/Performance
Read more: https://www.autocodes.com/p0321_volkswagen.html
Take the AutoCodes.com automotive tests and turbo-charge your car repair knowledge