What will happen when a collision in SHA256 be found?
No hash function has ever been broken in a way that would be meaningfully have an impact to Bitcoin. It’s not even a consideration, other than  for OP_SHA1 which has no non-academic usage in Bitcoin.