Proximity sensor goes crazy while calls

I hope that it’s just a software (calibration) issue and they can fix it. But it’s definitely not a problem of the Google dialer app. I used it on my previous phone without any problems. Only on FP4 does it behave like this.