How to fix “failed to delete stack: Role … is invalid or cannot be assumed”

How to fix the "failed to delete stack: Role [...] is invalid or cannot be assumed " error when using AWS CloudFormation.