How come I get irregular heartbeat when im relaxed?

Heart abnormality. You may have a section of your heart that is malfunctioning and causing an irregular heartbeat. This is true with atrial fibrillation which is what you may be experiencing. Please see a doctor because untreated it can cause serious issues like blood clots.