Tips for flaky dandruffs??

Im sorry if this is kinda gross but I was just scratching the top of my head and huge pieces of dry scalp just came off.. and I feel so gross but i know im not the only one who gets this. I often switch shampoo’s bc the anti-dandruff i use from time to time smells like chemical (but works so well) so when I feel like smelling good I use either Garnier or some random shampoo I ordered online. And my hair these days would still itch so bad even after I wash it. I haven’t seen a dermatologist yet but do y’all think this could be related to the fact that I always switch shampoo?? I also wash my hair every 3-4 days so idk if it’s too often and might cause hair dryness :/