This is totally normal. I feel exatly the same.
I noticed that 2-3 days before my period, it was not really a good idea to train and invert. However, stretching and doing short light yoga sessions help to prevent the PMS. As a side info, recently, I heard that eating some red patatoes few days before the period, helps you to avoid any sugar cravings. For me it really works and also stabilizes my emotions...
Few years ago, I discovered a book, which helped me a lot to understand the different phases of the cycle and how I experience them emotionally & energetically. Honestly, I try to "organise", whenever it's possible, my activities around these 4 phases.
"The Optimized Woman: If You Want to Get Ahead, Get a Cycle" from Miranda Gray (Amazon)
If you want to learn more and use the different phases of your cycle to your advantage and not fight with your body or mental state, I highly recommend it....
Basically, the period is the so called "reflective phase", which invites you to take your time to reflect, restore your energy, tune into your inner world, your intuition... it's a natural meditative state. Be gentle and kind with your body and yourself. Make time for extra sleep and relaxation. It's not the best time to socialize...In general, slow down and do less.... You will have the energy back in a few days....