I found a solution to this issue. After investigating, I came across this discussion on the Elementor GitHub repository: https://github.com/elementor/elementor/issues/29582.
The problem is likely related to using the Developer Edition of Elementor. If you’re experiencing this error, switching to a stable release of Elementor should resolve the issue. You can follow the instructions provided in this link to revert from the Developer Edition to a stable version: https://elementor.com/help/revert-to-release-from-developer-edition/.
This resolved the issue for me, and I hope it helps others facing the same problem. ??