I would think you should make a doctor appointment asap! Something is obviously wrong, I would be a little worried about bronchitis or pneumonia, or something along those lines. Not sure if you have any other symptoms, but chest pain of any kind is not something you should ignore.
If it's getting in the way of your enjoyment of riding, no matter what it is, something needs to be checked out. Good Luck, hope you are feeling better soon.
Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind. -Dr. Seuss