Thank you for your question.
I think your difficulties would be best answered after an examination and some tests. You are based in Chennai. You have an excellent Dr Kamraj who is a pioneer in the field in India. He has a telephone helpline and has written several books too.
Pain is unpleasant and from your description it is not clear whether it is related to a possible infection or local nerve involvement.
Regarding a long foreskin, this should not be an issue unless you are having difficulty cleaning under the skin or it rubbing on your underwear. If so this will need surgical treatment.
As far as morning erections go this is a matter that needs further evaluation. Generally if a man gets good morning erections it is reassuring as it implies that the vascular and nervous system required is functioning correctly. You should ideally consult with someone like Dr Kamraj for further tests and examination without much delay. Most causes identified can either be treated or managed successfully.
hope this helps