Don't stop to think about this question. It was a bug in my own code -
I did not clear the task if an error occured which led to an error next
time I access the device, which led to not clearing that task, which
led to an error next time....
That ate up all the memory. As simple as that.
Best regards,
Fredrik