I don’t see anything in the code you provided that should be causing this.
The error is in an Elementor function that is trying to get the value of a custom field. This function would only be called when using the dynamic content setting and entering a field name. It would not be caused by using a shortcode.