will fitting a smaller expansion tank effect the engine in any way
It shouldn't but why? Most are shaped to fit in a particular space.
original broken tank is large have been given replacement that is smaller