get_next_post_link() and get_previous_post_link() return wrong posts

This has been solved by changing Site Address (URL) in Settings > General to the path that matches with the posts’s path. I was pulling in posts from another location in my website that did not match with the original (default) path of the post.