I need suggestions what should I do and what I should not do while learning game development. I am not following any particular course or a particular book to learn. I am just referring random youtube videos and bingAI for the codes.
I'd recommend you do the courses on Unity Learn. It will teach you how to best use Unity and also help you with gaming techniques. Best of all - it's free.