1st it depends on your school policy, but I don't really see why failing grades would be a hurdle for a change of direction/ major/ focus of studies which is what it seems like you are referring to when you say course change. In my experience the failing grade affects a few things GPA, credit for the course the ripple of that could have baring on academic performance based scholarships. While changing direction can lead to more time being invested failing the courses already doesn't grant credit for the course so its really a 0 sum loss as I see it. If the failing was due to overstress struggles with the material or simply a loss of passion for whatever it might be then a change of direction is definitely a good approach.
however regardless I would encourage a pursuit of the root cause of it and see what were the factors that resulted in the fails to allow for a lesson to be reaped from it and to prevent a repeat in the future. so that the change in direction can be a change towards success, and a new chapter towards the completion of whatever area of study you are in pursuit of.