When substituting a course for a degree or diploma requirement, the error The credits substituted cannot be more than the credits the student has earned from the selected courses occurs. The course does not show as being substituted in another requirement. The error may not occur until after going to another tab and trying to save.
Remove the diploma from the students requirement tab and save the record. Add it back and substitute the necessary courses.