Maybe you have anxiety problem because of your pending marriage. Keep cool and enjoy your marriage and do not worry about sexual performance. Do abdominal and deep breathing. Google these techniques. This will help you to control your mind and body.
sorry you have to deal with this as you get married. Honestly, you need to do the test he recommends. Sudden onset, unless it is nerves (wedding jitters), needs to be diagnosed.