Magento 2.4.x essentially need Elasticsearch, before start Magento 2.4.x, your machine must be start Elasticsearch, once Elasticsearch start, your machine run perfectly with Magento 2.4.x
Error “The stock item was unable to be saved. Please try again.”
Above error occurs, if Elastisearch not started.
Solution:: To remove error, Elasticsearch must be start.