BFP but black/brown discharge

Ok so got this:

But having this:

It's the start of a miscarriage isn't it? 8 days away from period.