After more testing I found out what exactly the problem is and how to reproduce it. It’s described in this newer ticket: