What version of Unity are you using please?
There was a recent finding in regards to External Inspector (which is what that button opens) that has been fixed and which may also be the reason behind this error (which as far as I can tell you are using a Unity version of 2020+ ?).
Please try importing the attached package (fix) and let me know if that solves the problem for you.