Was getting the same error. Running "git apply --reject --whitespace=fix GMLive_2022.2.patch" worked for me.