I know I commented earlier, but I thought I might add, if it's a job you really want/need to keep, it might just all come down to shifting your own perspective. Learning ways to depersonalize the work from your sense of self, at least when it comes to the bad manager. Realize that this particular manager is always going to find problems, be unrealistic and just generally be a bad manager. Do things to build your own confidence, celebrate any wins no matter how small and make a conscious effort to not let a bad work day ruin your life outside of work. You can't control what other people do, only how you respond to it. Above all, try to use it to make yourself stronger.
Good luck and I hope it gets better and this time next year you can't even remember why you were upset.