Tongue in cheek rule of thumb: If it works it's called line breeding. If it doesn't, it's inbreeding.
If I understand your scenario correctly, the prospective foal's paternal grandsire and maternal great grandsire would be the same stallion. If so, it's done all the time and you shouldn't...