Sri Lanka, Egypt and Pakistan ‌belong to ‌a group of crisis-scarred countries that analysts fear have been thrust back toward trouble amid rising energy costs.