FP2 goes to coma instead of sleep

Sounds like a job for the Proximity Sensor calibration tool, which now is also available on LineageOS.
You can find it among the Apps, not in the settings, on my German locale here it is simply called “Kalibrierung”, with some consistency it should simply be “Calibration” in English.