Stockfish shows only 2 next moves For Position 1r2k1r1/pq1b1p2/1p1Rp1p1/2p1P3/2B2P2/P1N1K1P1/1P2Q3/8 b - -
stockfish analysis ouput is like
info depth 12 seldepth 17 multipv 1 score cp 258 nodes 80180 nps 76874 hashfull 14 tbhits 0 time 1043 pv b6b5 c3e4 b5c4 e4f6 e8f8 f6d7 f8g7 d7b8 g8b8 d6d2 b7b3 e3e4 c4c3 b2c3 b3a3 d2d3

info depth 13 seldepth 22 multipv 1 score cp 130 nodes 122237 nps 81437 hashfull 25 tbhits 0 time 1501 pv b6b5 c4d3

As you can see stockfish only show 2 moves sequences for depth 13 b6b5 c4d3,
Can I somehow force stockfish to show at least 5 moves sequences?
You can't. That's how Stockfish internally works. You are going to need to check your previous line with the current line. If the current line has fewer moves, discard it.