General Motors issued an upbeat forecast for 2023 after reporting strong quarterly results, citing high demand.