"My relationship is going south with my spouse. Can I get a divorce without affecting my status (I-751 pending)?"
If you've already filed the removal of conditions, it's not likely to affect anything. It would be rare that you would get an interview for that. If you did, of course, you'd have to be honest if that topic came up, and say that you separated and explain the reasons. But, really, if you've already filed your removal of conditions, and now, in the interim, you start processing a divorce, which doesn't happen immediately, it's not likely to be an issue.
You may well have your regular 10-year green card before you even get to the end of a divorce process. It sounds like you don't have anything to worry about.
Cases who file for divorce before the conditions are removed are not uncommon, as we've done many of those. You just have to demonstrate that the marriage was entered into in good faith, this wasn't a scam to get an immigration benefit. As long as you can show that, they generally get approved.