I am not sure this is the same. The issue you have should never lead to OOM.
The memory is still available for this process and can be re-used. It is more an issue that it makes the memory not available for other processes and confuses reporting tools.
I am really not sure where this errors can come from though. I am pretty sure this is not in our own code. So maybe cuda-related stuff?
Do you actually run out of RAM while the program runs?