How to tell professor the reason for dropping his/her subject without it sounding rude?
Tell them that you need to focus your efforts on fewer things especially your thesis as you find it challenging.

Be polite and don't forget professors have heard it all before, they will understand or should do.