Period after lost

Sh

So I had a pregnancy lost August 7 started spotting a month later then 3 days later lead to a period which lasted 5 days and now 4 days after that I’m spotting again what can this be