Thanks a lot for the replies @marty and @tyrro .
I've been through the help page and when all the options didn't work, I looked for more solutions and found the rewrite rules to be an issue. When I change the permalinks to the default Wordpress option, Elementor works fine and I'm able to edit pages. However, when I switch back to the "Post Name" permalink option, it stops working.
I having a feeling that adding this line try_files $uri $uri/ /index.php?q=$uri&$args; to the config files will solve the issue since it worked for the person who reported the bug originally but I'm not sure which config file to add this line in. I've tried adding it to /etc/nginx/nginx.conf and even the site config file in sites-available but it didn't seem to help.
Right now, the only way I can get elementor to let me edit the pages is by using the default permalink settings.