Hello,
I ran into an issue inserting a patch with data into a binary that uses instructions operating on 128bit registers, specifically this instruction: xorpd xmm2, XMMWORD PTR [rip+0x69aed].
This was as the memory operand needed to be 16 byte aligned and the data I had inserted with my patch had moved this alignment. After I ensured my patch was 16-byte aligned the binary rewrote successfully.
I'm not sure if this is actually an issue or maybe more something to be aware of when writing patches but I thought I might make an issue for anyone else with this problem.