I think that you have to detach your ego from your results and accept being bad at something for long enough that you can become good at it. Children seem to be better at this than adults, who often have issues with looking foolish. What the adults fail to realize is: no one cares; other people are too busy worrying about themselves.
I think that this is easier once you've gone through the process of mastering something a few times and understand that this beginner stage is most likely temporary and that there's a lot of value in getting the fundamentals of whatever you're learning down cold. Viewing these fundamentals as "simple stuff for beginners that's beneath me" is a mistake.
If you do need to attach your ego to something, I'd suggest attaching it to successfully carrying out the process of working on improvement each day, independent of results. That is, focus on getting in your reps each day ("I did my x pages of reading, y puzzles, z games for today, and analyzed my games" ) and let the results follow. The book Atomic Habits by James Clear explores this process-oriented point of view in more detail.
Ok, so this is an open ended question, and is certainly not just about chess, although this is a chess forum on a chess site. I began to think deeply about the topic a few days ago and I found myself thinking of chess as yet another game I will forever feel a beginner at.
Now, my reasons to have chess as a hobby (if you had to have reasons for any hobby besides liking it) are summarized by some sense of aesthetic pleasure from seeing a game, analyzing (not that deeply) a position, or knowing trivia facts about the chess universe. I don't know which are your reasons, but some of the above may apply.
Now, my personality is the type that doesn't bode well with being a beginner at something I like. I consider any beginner level a level full of cringe, corruption and general lack of aesthetic value for any activity. Probably that's why I take my account here as a "joke" account. Yet, even when I do, I still dislike being a beginner. It robs me of the pleasure of playing the game well... It's cumbersome and demoralizing. I always find myself wishing I had enough natural talent to bypass the beginner stages altogether. That's my main wish whenever I become interested in any activity, specially one that requires some specialized skills: to discover I'm naturally talented at it and need not be a true beginner. Alas, it hasn't been the case with chess... very sadly so.
Fortunately, chess can be a spectator sport of sorts, so I have that going for me. Otherwise, I would've quit the chess universe a long time ago. So, my question is... how do you deal with being a beginner? Do you ever feel that it's incredibly annoying and depressing?. I don't mean just because of the obvious frustration of losing, but overall. I honestly think that if I took chess seriously I would start to actively dislike it, but fortunately i'm not going down that route.