Thanks for all the suggestions, everyone! I tried a few things, and here’s what worked for me. First, I got a cooling pad, and it definitely helped with the temperatures my CPU now stays cooler while gaming. I also switched to the "High Performance" power plan, which made a noticeable difference in CPU speed.
Closing unnecessary background applications before starting my games freed up CPU resources, and I updated my drivers and BIOS, which improved overall system stability. After making these changes my CPU speed during gaming is now consistently around 3.2 GHz. I appreciate all the help!