Get Your Dog Care Questions Answered by Experts
You need to take this very seriously. It sounds like your pet has a heart condition that could be causing the fainting. Heart failure might cause the dog to fall over on his side because the blood is not pumping well. When this happens, the dog might stare straight ahead but is unable to move. Then they get up and everything is fine until it happens again.
Coughs are also indicative of this.
You need to see the vet as soon as you are able.
Let me know if you still have questions.