In my case it was not incorrect nesting of HTML tags, it was due to some browser extensions I came to know from reddit thread, I just disable them and the error/warning disappear.
You can run the application in incognito and check also.
https://www.reddit.com/r/nextjs/comments/1ims6u7/im_getting_infinite_hydration_error_in_nextjs_and/