for the people has this error for Q Inventory System im using unity 2022.3 to fix this error
replace the code in void Start() with this code
m_InputField.onEndEdit.AddListener(OnSubmit);
or just follow the video Q Inventory System Unity fix error