RStudio glitches on windows 10 especially with RMD, how to fix?

If the lagginess is related to the responsiveness of the IDE, then yes, but if it is related to the R code being run, then no. Hard to tell without a REPRoducible EXample (reprex).