Discrepancy between the viewport render and actual render from the render engine.(Grease Pencil)
I am going to answer my own question in case someone is facing a similar issue:
In my case, there was a plane behind that grease pencil object that was intersecting the drawing while being rendered. Since it was hidden in the viewport but it was being selected for the render.
To see what objects are being rendered:
Go to outliner-&gt;Select filter-&gt;click on the camera icon
Then you will be able to select the specific objects you want to render from the outliner.