We're using Gitlab CI for building a project that compiles a lot of big files. All of a sudden a working job failed. We did not change anything in the job configuration and the build was just fine but the uploading of the artifacts in the end failed.
After some research I found out that the maximum artifact size was exceeded. You can set the maximum artifact size in the Gitlab settings on instance, group or project level.