Failing badly means that you did not do as well as you wanted or expected to do. It usually means that you didn't meet the goals or expectations set for you. For example, if you were asked to do a project for school and you didn't do a very good job, then you could say that you failed badly.