Learning Path assignment to Team fails with “Oops” error.

When assigning a Learning Path to a Team, the assignment fails and the user sees a generic “Oops” error on the screen. Questions this answers: Why do I get an Oops error when assigning a learning path to a team? How do I fix a learning path that fails to assign to a team?