Recommended MacBook Pro 13 (mid 2012) SSD upgrade?
Your warranty won't be invalidated although Apple can refuse to work on it until you reinstall the original drive (so put it away on a shelf).  A local shop might be more flexible. Or not.