2000 Ford Expedition 4x4

Tranmission shifts smoothly until I accelerate to high rpm’s, then there is a clang sound and feels like it went into 4 wheel drive, decelerate and shifts smoothly again, can anyone help, Thanks

John