Attach 2x4 flat on the inside. Looks like you over cut it by afew inches . Truth me your not the first one to so it. Before you install window caulk around the opening before you install window. Then trim out the outside with 1"x4" . Then caulk around the trim. The outside trim can be nailed...