That's the title, folks. What do you think I should do?

So the story is... kinda funny but also annoying lol
I'm an office worker in Nakhon Ratchasima, 38 years old. I'm the type who likes to keep low-key, but I'm not always super calm either.

Short version: my team leader likes to send work or comments in our LINE group late at night — like after 10pm, sometimes midnight — and expects immediate replies. If someone doesn't answer he'll post in the group like "check this" in a half-scolding, half-joking way. Then if there's a tiny mistake that doesn't really affect anything, he'll pull it out as an example in front of everyone at the next morning meeting. Sometimes the error happened because upstream changed something, not our team, but he says "our team has to be thorough." And suddenly he'll dump urgent tasks on us Friday evening with a Monday deadline and go "you can definitely finish this, right?" with zero heads-up.

I get that urgent stuff happens, but the problem is more the tone and the way he does it than the work itself. For example he sent a LINE asking for details at midnight, and I didn't reply right away because I was at home feeding my kid (using a tiny plastic spoon). He seemed irritated, and the next morning he said my slow reply caused a project delay — even though others have replied late before and didn't get treated like this. Feels like I'm the scapegoat sometimes, or maybe I'm overthinking.

Sometimes it feels like he picks people who "get his jokes" more easily. I'm not biased or anything, but when he teases others in the group and giggles, there's a comfort zone they have that I don't really get into. I try to stay professional and deliver on time, but being called out in front of the team makes me lose face, feel confused, and irritated all day. Sometimes I want to clap back hard, but I'm worried I'll be labeled as a troublemaker. I've worked years and don't want to switch jobs often — job hunting is exhausting... or maybe I just stay quiet too much, hmm.

One small thing: for lunch the team likes to eat with the boss at the little food stall near the office. I once declined because I had a quick errand (went to a shop on soi 5 for like 20 minutes). When I came back someone jokingly said at the table, "Where did you disappear to?" Not serious, but it made me uneasy. It's like they measure loyalty by tiny stuff like that. Or am I being oversensitive? T_T

I'm half amused, half annoyed lol. So I want to ask you all:

1) If a team member gets publicly criticized in front of others a lot, should I talk directly to the boss about it, or quietly take it up with HR?
2) If the boss expects replies on LINE at late hours with no boundaries, how can I set limits politely so it won't hurt my career later?
3) Or should I adjust my attitude and put up with it for now, then just find a new job later?

Sorry if this is messy, I'm using a friend's login to post this.

What do you think I should do?

P.S. If anyone has experienced a boss who likes to scold people in front of the team, please share — maybe I can get some ideas on how to handle it.