Currently, it seems that the CI pipeline fails with an yaml invalid error if the pipeline is triggered automatically from GitHub.
Manually creating a new pipeline from the same commit in GitLab resolves this issue.
See screenshot of failing pipeline in GitLab CI:

Since re-running fixes the invalid YAML error, this issue may be related to something else. A very similar open GitLab issue exists here: https://gitlab.com/gitlab-org/gitlab/-/issues/207320