I was able to repro the exact same error when moving a first post to closed/archived topic and that is now fixed via:
https://github.com/discourse/discourse/commit/984778d3acb209297e37681137c0d8d5131e83ec
@Freso I see that the destination topic in your case was not closed/archived, but can you please try updating your instance to latest version and see if the issue is fixed for you?