The fact that you don’t understand everything in lectures doesn’t mean that you are not good at mathematics any more, it just means that the mathematics is harder and the pace is faster. To keep up with it, you will have to do more (or better) work. But so will everyone else. And that’s as it should be (if studying for a mathematics major was easy, everyone would do it).