disciplining toddler

so my LO is 2 almost 2 1/2 and he’s at the stage where he isn’t listening to a damn thing 😂 but i find myself getting frustrated and yelling at him which i know is normal but i’m feeling guilt every time. no i don’t beat him and no i’m not constantly screaming but when i do yell he does cry like he’s scared i guess. i just don’t ever want him to be afraid of me or hate me, i know what that feels like and that’s my biggest fear. any tips? is he too young for me to be worried about this? 🥺😪😪😪