I'm sorry you had this experience. It sucks. A lot of managers suck, because the skills and traits needed to get a promotion or run a business don't necessarily align with the skills/traits needed to be a good manager.
First, this is not your fault. Do not take this personally. Your manager/boss is the "adult" in the room - what happens between you is their responsibility, because that's their job. If you are walking away from an interaction feeling demotivated, annoyed, etc, then that's them being bad at their job, not you being a bad employee.
Second, this is not how professional, constructive, feedback is given. If your boss wants you to make some changes in how you work, they will be specific about that. This kind of unfocused complaining contains no actionable instructions, so you can safely ignore it. It's good that you've found some specific things that you were able to take away from the meeting, but given the context, those may not have been intended and you may not find yourself being praised for following them.
Third, your boss is only human. Humans have bad moods, bad days, and some humans make themselves feel better by making other humans feel worse. Every human is just trying to feel safe and loved, and your boss is no different. Be aware that they are this type of human, and try to remember that if it happens again.
Fourth, take some meeting notes while it's still fresh. For this first time, I wouldn't send them to anyone, but if this recurs then start obviously taking notes during the meeting and emailing them to your manager and your boss after the meeting. It's amazing how having written records of meetings stops unprofessional behaviour during them. It will also clarify if the criticism is genuine, or just your boss offloading their problems onto you. If anyone objects to you taking notes during the meeting, then they are definitely just offloading and you can ignore everything they say.
There's probably more, but I think the main point to realise is that this is not your fault. Try not to let it get to you.
First, this is not your fault. Do not take this personally. Your manager/boss is the "adult" in the room - what happens between you is their responsibility, because that's their job. If you are walking away from an interaction feeling demotivated, annoyed, etc, then that's them being bad at their job, not you being a bad employee.
Second, this is not how professional, constructive, feedback is given. If your boss wants you to make some changes in how you work, they will be specific about that. This kind of unfocused complaining contains no actionable instructions, so you can safely ignore it. It's good that you've found some specific things that you were able to take away from the meeting, but given the context, those may not have been intended and you may not find yourself being praised for following them.
Third, your boss is only human. Humans have bad moods, bad days, and some humans make themselves feel better by making other humans feel worse. Every human is just trying to feel safe and loved, and your boss is no different. Be aware that they are this type of human, and try to remember that if it happens again.
Fourth, take some meeting notes while it's still fresh. For this first time, I wouldn't send them to anyone, but if this recurs then start obviously taking notes during the meeting and emailing them to your manager and your boss after the meeting. It's amazing how having written records of meetings stops unprofessional behaviour during them. It will also clarify if the criticism is genuine, or just your boss offloading their problems onto you. If anyone objects to you taking notes during the meeting, then they are definitely just offloading and you can ignore everything they say.
There's probably more, but I think the main point to realise is that this is not your fault. Try not to let it get to you.