If you don't hold a valid visa for India and those flights are under one booking it's quite likely you won't even be able to board your flight to Sri Lanka.
I see you say they are booked as 2 seperate flights but under one booking?
I would still be wary of being denied check in.