You should in fact write your password down on a piece of paper, and secure that piece of paper. We have centuries of experience securing small valuable pieces of paper, like the ones I have in my wallet right now, so it’s a known problem with a set of known solutions.