Getting a wine version mismatch error when trying to install Origin

I’ve come across this error before in Lutris but it can usually be fixed by either disabling the Lutris runtime or by switching to lutris-git but both have failed to fix it.

It usually works the first time around when I’m installing Origin, but then when I try run the origin.exe it gives me the below error (or something similar).

Running /usr/bin/wine /home/alex/Downloads/OriginSetup.exe
Initial process has started with pid 1677452
Game is considered started.
wine client error:0: version mismatch 604/603.
Your wine binary was not upgraded correctly,
or you have an older one somewhere in your PATH.
Or maybe the wrong wineserver is still running?
Game is considered exited.

It seems to happen with my other prefixes as well if I change any settings (e.g. switching to a different version of Wine). I’ve killed all wine processes, rebooted and checked that I only have one version of Wine installed. I’ve even tried a pre-made prefix from my old Arch Linux install that was known working. Not sure what else to do? I’m on a fresh Arch Linux install with a Ryzen 2700 and Vega 56 (amdgpu + mesa) GPU if that helps.

What would be the next steps to troubleshoot this?

I recommend reinstalling wine.