@rodicaelena I ran into this problem today while trying to install the “Divi” theme on a freshly created practice site within “Local by Flywheel”. I created the site with PHP 7.4.1 (the latest/greatest available). By switching it down to PHP 7.3.5, the problem disappeared and “Divi” installed normally. So, having the *latest* version of PHP available is probably a cause more than a cure. 😀
I will make a point to inform Elegant Themes of this, too, in case there’s something they need to do on their end to avoid the issue. Whatever it is, it’s not specific to “Divi” and definitely seems to be PHP-related.