The script may use certain IDs or classes in the DOM and if you have modified the template then the AJAX request may not work as expected. Try again using a fresh copy of BuddyPress to see if the problem continues to happen
I didn’t modified any template or file from Buddypress. I am using Divi theme and memberPress plugin for maintaining the members. Also used “MemberPress + BuddyPress Integration” plugin to integrates MemberPress with BuddyPress.