write them down on a page without looking at the book. do this over and over until you perfect it. don't worry at all about getting them completely wrong at the start, you want for that to happen as the correction will get rid of the dunning-kruger effect that you'd get from simply reading over the text.
also, i found that english teachers give far too many quotes than necessary. they're really only used to elaborate on / back up the points you make in the exam. as long as you know when to use quotes in order to make your point stronger, you should be fine. memorise the ones you know will be helpful to you and that'll be enough.
another option is watching a production of the play while reading it. shakespeare wrote his plays with the idea they'll be performed, not read. watch macbeth and then analyse it, not the other way around. you'll remember it easier this way.
Thanks for the advice. My teacher gives a lot in quotes, most of which definitely won't be of any use. There's a list of quotes in the notes section for Macbeth here that seems far more reasonable and realistic. I'll learn the quotes she gives me for the test, but I'll focus on that list for the main big 2023 exam.