To determine if the stock assembly requires a carbine or full length buffer set up, pull back on the charging handle and see where the face of the bolt stops in regards to the back of ejection port window edge.
If the buffer and spring are correct for the set up, the face of the bolt should stop 1/8" to 1/4" in front of the back of the ejection port window.
If the bolt face retracts back past the back of ejection port, do not shoot the rifle since as stated, the B/C is not being stopped correctly at the back of ejection stroke, and the back of the key will crash into the back of the lower receiver at the threaded section of the tube to crack the receiver. On the other side of the coin, if the buffer and spring are too long, then the bolt will not retract back past the mag catch, and the rifle will not be able to correctly strip a round out of the mag during cycle.
As for springs, carbine spring is around 10.5", while a full length buffer spring is 11.75" instead.
Lastly, buffer and buffer spring have nothing to do with the upper receiver. The needed buffer and spring lengths are determined by the length of the receiver extension inner void length only (buffer tube, with the telescoping stock tube shorter than a fixed length tube, and whey you have the two different buffer and spring lengths).