Your friend might have been given a warning by God for your sake.
Most of us, including myself, have what some might call "psychic accidents"--or they might be messages from the Holy Spirit.
Don't worry about it, and don't seek such experiences in the future.
Christ is baptized! In the Jordan!