I believe this[1] is the patch that fixes this bug. I tried to reproduce the behavior but couldn't succeed. Maybe I was doing something wrong. Would really appreciate it if someone here could show a test case where this matters.
[1] https://github.com/LoupVaillant/Monocypher/commit/347189c50c...