Last possibility would be:
Phone app / Settings (un der the 3 dots in the top right corner) / Calling accounts / uncheck “Turn on proximity sensor” This solves it on a Fairphone 2.
Afterwards, I also cleared the cache and re-enabled the proximity sensor. So far the bug did not show up again.