The phrase “Miles to go before I sleep” is the famous closing refrain of Robert Frost's poem “Stopping by Woods on a Snowy Evening” (1923).
No 1975 film bears that exact title. There is a 1962 TV movie Miles to Go Before I Sleep (part of The DuPont Show of the Week), but not 1975.
If you're thinking of a specific movie with a similar theme, share details.