How to remove out of bounds power values reported by ZigBee Frient wall plug?

I’m having couple of Frient wall plugs which can report power and energy. It is ZigBee device and I’m using Zigbee2mqtt. They seem to report every now and then funny -11 000 W or so power values which make graphs look quite useless. How I could get rid of that? In which component and how I should remove these clearly out of bounds values? I would guess something can be done before writing the data to the recorder database.

You can see the issue from this image.