I ran into the same issue. It was resolved by changing wp-includes/image.php. In my case, I changed
if ( count( $attachments ) > 1 ) {
to
if ( count( $attachments ) < 1 ) {
Of course, there are never < 1 attachments, so it will return false and instead of linking to the next image it will just link to the full size version of the current image.