I realized that there was a mistake in the number of orders we have made.
I realized that we've made a mistake with our order.
ご質問ありがとうございます。
① "I realized that there was a mistake in the number of orders we have made."=「発注数に間違いがあったことを気が付きました。」
② "I realized that we've made a mistake with our order."=「注文内容で間違いをしたことに気が付きました。」
ご参考までに。
We just realized there's something wrong with our order.
We just realized we ordered the wrong number of XX.
この場合、次のような言い方ができますよ。
ーWe just realized there's something wrong with our order.
「発注に間違いがあることに気がつきました」=「発注内容に誤りがあります」
ーWe just realized we ordered the wrong number of XX.
「誤った数を注文したことに気がつきました」=「発注数に誤りがあります」
ご参考まで!