We have the same problem. Our agency uses about 250 installations of “Code Snippets” in very heterogenous WordPress installations – installed over the last years on different servers and we didn’t see this problem anywhere so far.
As all of you described before this problem only occurs directly after a new installation of this plugin when we try to activate it right after/from the installation dialog. It doesn’t occur if we activate the plugin from the plugins page.
It happens with PHP 7.4 and PHP 8.1, too. We guess it should be the last update of this plugin that introduced this bug.
We would be happy to read something from the plugin author in this 11 days old thread.
@bungeshea if you wish to reproduce this problem easily just get you a fresh WP installation at wpsandbox.net and only install (and directly activate) your plugin. That’s enough.
Greetings,
-doffine