You can use them interchangeably but there is a little bit difference. "Could have" generally expresses unreal situations. " --> I might harm myself.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.