You can edit the function auto_load_next_post_navigation in the core functions file inside the includes folder and replace the post navigation by the original function the_post_navigation and customize your posts navigation to get posts in the same category: https://developer.www.ads-software.com/reference/functions/the_post_navigation/#comment-1662