Hi,
It’s actually a bug in CentOS 8 itself.
Check here for details on how to work-around Awstats error, and here is how to work around few other small issues.
All of this will be fixed in the near future by @Joe.