Hi there, Randhir Jha!
The net income and the retained earnings are coming from your transactions, so I would suggest editing your opening balance equity. I know you're getting this from a certain report, so on that report page, click the opening balance equity amount. Then, click on the transactions that comprised this negative amount, and change them.
Please let me know if you need more help correcting the amounts of your accounts. Have a good day!