It appears git versions older than 2.33 can't handle some simple merges, and many of our CI tasks use such old versions.
The simplest fix is probably to just use GitHub's generated merge branch rather than trying to merge in each CI instance, but I haven't tested it.