Brown blood is usually old, due to not having enough hormone to shed the womb lining all at once. Good that you are getting a scan!
As oestrogen levels drop muscles may become lax = aches and pains. I remember that I have odd pains during the various parts of each month: down my thighs into the legs prior to a bleed.
Has pain relief helped at all? Let us know how you get on.