How to fix the "Pro Tools ran out of memory while scanning the plug ins folder error message."

The "Pro Tools ran out of memory while scanning the plug ins folder error message" is one that will stop you dead in your tracks because it won't let you even get to the session dialogue box to open or create a new session.

Good news though, I figured out how to fix it and I hope you'll find it is the solution for you as well!