It’ an error in the ‘flatsome’ theme. You need to contact the theme developer via their support page.
Unless you want to dig around in their code, fix something, then have a theme update break things again. (Not recommended, but if you are headed that way, make a child theme).
The theme support page is your best next stop.