memory_read_error -> memory_write_error
I would be curious how you found that bug? I believe a lot of these errors are kinda impossible to reach in a normal test setup (I remember I tried writing some tests for this but can't remember finding a good way to get into all the different error branches in IRInterpreter).
I was looking into the issue with SBValue::Persist (https://discord.com/channels/636084430946959380/636732809708306432/817370459284832297) and the logs and errors eventually led me here to IRInterpreter. And the incorrect error message I noticed just by accident :)