If you have this problem, it may be a conflict with another plugin. In my case, I had the error when I upgraded the plugin, but could see from the error message some type of conflict with WP Security Scan.
I reverted back to the older version of Secure WordPress, updated my other plugins, then tried the Secure WordPress upgrade again. It worked the second time with no errors.