The error message about Bad magic number in chunk header is a sign of a problem in the version of IOS (and so is the traceback). I think that there is nothing that you can do in the config. The solution is an IOS upgrade.
I had a similar error message a while back. Upgrading the IOS to a more recent version fixed it just fine.
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...