I think this machine has two GPUs, so f.lux is writing an ICC profile every so often to avoid flashing when switching between GPUs. Assuming that this profile causes problems in the new macOS, let's try disabling that:
https://justgetflux.com/news/2014/10/28/profile.html
What you can do, from Terminal:
defaults write org.herf.Flux disableProfile 1