From history it seems that you might be having unstable angina
giving rise to this problem.
You might be having coronary insufficiency.Consult cardiologist
, he will prescribe some medicine like sorbitrate
to give relief from your pain.
Avoid doing hard work.
Go for slow walking exercise after consulting your doctor.
Continue with the medicines prescribed by your cardiologist.
Ok and take care.