I’m pretty sue 105 is 68mm. It depends on what frame your putting it on. MTB is generally 73mm BB.
To clarify that a bit…
The bb shell width shouldn’t be relevant (assuming traditional threaded cartridge bb) to whether the crank will fit. It affects the bb variant you use not the groupset or crank.
Edit: assuming you can get it in 73mm. My Google attempt tells me that might be challenging
Assuming the alternate bb is available…
If the crank came off a 68mm bb bike and is going into a 73mm bb frame you will need a new BB that has a cartridge/sealed unit that suits the wider shell. The crank will still fit. You may need to select a different bb axle length for the right chain line.
This all assumes you can still get road octalink spares in both shell widths. I’d be surprised if you couldn’t but at what quality level you can still get choice is another matter.