You don’t need if you're using Photoshop 2018 or later. Otherwise, read this official Adobe memory error guide to learn how to make changes to the registry.